import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { StorageStockWarehouseComponent } from './stock-manage-pages/storage-stock-warehouse/storage-stock-warehouse.component';
import { StorageStockLocationComponent } from './stock-manage-pages/storage-stock-location/storage-stock-location.component';
import { StorageStockSncodeComponent } from './stock-manage-pages/storage-stock-sncode/storage-stock-sncode.component';
import { StorageStockPutdetailedComponent } from './stock-manage-pages/storage-stock-putdetailed/storage-stock-putdetailed.component';
import { StorageWarehousListComponent } from './warehous-manage-pages/storage-warehous-list/storage-warehous-list.component';
import { StorageWarehousEditcgComponent } from './warehous-manage-pages/storage-warehous-editcg/storage-warehous-editcg.component';
import { StorageWarehousEditptComponent } from './warehous-manage-pages/storage-warehous-editpt/storage-warehous-editpt.component';
import { StorageWarehousSeeComponent } from './warehous-manage-pages/storage-warehous-see/storage-warehous-see.component';
import { StorageWarehousOperationComponent } from './warehous-manage-pages/storage-warehous-operation/storage-warehous-operation.component';
import { StorageWarehousHandleComponent } from './warehous-manage-pages/storage-warehous-handle/storage-warehous-handle.component';
import { StorageExwarehousListComponent } from './exwarehous-manage-pages/storage-exwarehous-list/storage-exwarehous-list.component';
import { StorageExwarehousEditComponent } from './exwarehous-manage-pages/storage-exwarehous-edit/storage-exwarehous-edit.component';
import { StorageExwarehousDetailsComponent } from './exwarehous-manage-pages/storage-exwarehous-details/storage-exwarehous-details.component';
import { StorageExwarehousOperationComponent } from './exwarehous-manage-pages/storage-exwarehous-operation/storage-exwarehous-operation.component';
import { StorageExwarehousHandleComponent } from './exwarehous-manage-pages/storage-exwarehous-handle/storage-exwarehous-handle.component';
import { StorageTransferListComponent } from './transfer-order-manage-pages/storage-transfer-list/storage-transfer-list.component';
import { StorageTransferEditComponent } from './transfer-order-manage-pages/storage-transfer-edit/storage-transfer-edit.component';
import { StorageTransferDetailsComponent } from './transfer-order-manage-pages/storage-transfer-details/storage-transfer-details.component';
import { StorageTransferHandleOutComponent } from './transfer-order-manage-pages/storage-transfer-handle-out/storage-transfer-handle-out.component';
import { StorageTransferHandlePutComponent } from './transfer-order-manage-pages/storage-transfer-handle-put/storage-transfer-handle-put.component';
import { StorageTransferHandleListComponent } from './transfer-order-manage-pages/storage-transfer-handle-list/storage-transfer-handle-list.component';
import {WarehouseComponent} from './p/warehouse/warehouse/warehouse.component';
import {StorageLocationManageComponent} from './p/warehouse/storage-location-manage/storage-location-manage.component';
import {CommodityBrandComponent} from './p/commodity/commodity-brand/commodity-brand.component';
import {CommodityCategoryComponent} from './p/commodity/commodity-category/commodity-category.component';
import {CommodityInfoComponent} from './p/commodity/commodity-info/commodity-info.component';
import {CommodityAddComponent} from './p/commodity/commodity-info/commodity-add/commodity-add.component';
import {PurchaseOrderListComponent} from './p/purchaseOrder/purchase-order-list/purchase-order-list.component';
import { StoragePurchaseListComponent } from './purchase-order-manage-pages/storage-purchase-list/storage-purchase-list.component';
import { StoragePurchaseEditComponent } from './purchase-order-manage-pages/storage-purchase-edit/storage-purchase-edit.component';
import { StoragePurchaseDetailsComponent } from './purchase-order-manage-pages/storage-purchase-details/storage-purchase-details.component';

const routes: Routes = [
  { path: 'storage-stock-warehouse', component: StorageStockWarehouseComponent, data: { breadcrumb: '库存查询(仓库)' }},
  { path: 'storage-stock-location', component: StorageStockLocationComponent, data: { breadcrumb: '库存查询(库位)' }},
  { path: 'storage-stock-sncode', component: StorageStockSncodeComponent, data: { breadcrumb: 'SN码信息' }},
  { path: 'storage-stock-putdetailed', component: StorageStockPutdetailedComponent, data: { breadcrumb: '商品出入库明细' }},

  { path: 'storage-warehous-list', component: StorageWarehousListComponent, data: { breadcrumb: '入库单管理', keep: true }},
  { path: 'storage-warehous-editcg', component: StorageWarehousEditcgComponent, data: { breadcrumb: '新建采购入库单' }},
  { path: 'storage-warehous-editpt', component: StorageWarehousEditptComponent, data: { breadcrumb: '新建普通入库单' }},
  { path: 'storage-warehous-details', component: StorageWarehousSeeComponent, data: { breadcrumb: '入库单详情' }},

  { path: 'storage-warehous-operation', component: StorageWarehousOperationComponent, data: { breadcrumb: '入库操作', keep: true }},
  { path: 'storage-warehous-handle', component: StorageWarehousHandleComponent, data: { breadcrumb: '入库单处理' }},

  { path: 'storage-exwarehous-list', component: StorageExwarehousListComponent, data: { breadcrumb: '出库单管理', keep: true }},
  { path: 'storage-exwarehous-edit', component: StorageExwarehousEditComponent, data: { breadcrumb: '出库单新增编辑' }},
  { path: 'storage-exwarehous-details', component: StorageExwarehousDetailsComponent, data: { breadcrumb: '出库单详情' }},

  { path: 'storage-exwarehous-operation', component: StorageExwarehousOperationComponent, data: { breadcrumb: '出库操作', keep: true }},
  { path: 'storage-exwarehous-handle', component: StorageExwarehousHandleComponent, data: { breadcrumb: '出库单处理' }},

  { path: 'storage-transfer-list', component: StorageTransferListComponent, data: { breadcrumb: '调拨单管理', keep: true }},
  { path: 'storage-transfer-edit', component: StorageTransferEditComponent, data: { breadcrumb: '调拨单新增编辑' }},
  { path: 'storage-transfer-details', component: StorageTransferDetailsComponent, data: { breadcrumb: '调拨单详情' }},

  { path: 'storage-purchase-list', component: StoragePurchaseListComponent, data: { breadcrumb: '采购单管理', keep: true }},
  { path: 'storage-purchase-edit', component: StoragePurchaseEditComponent, data: { breadcrumb: '采购单信息' }},
  { path: 'storage-purchase-details', component: StoragePurchaseDetailsComponent, data: { breadcrumb: '采购单详情' }},

  { path: 'storage-transfer-handlelist', component: StorageTransferHandleListComponent, data: { breadcrumb: '调拨操作', keep: true }},
  { path: 'storage-transfer-handleout', component: StorageTransferHandleOutComponent, data: { breadcrumb: '调拨处理(待出库)' }},
  { path: 'storage-transfer-handleput', component: StorageTransferHandlePutComponent, data: { breadcrumb: '调拨处理(待入库)' }},
  { path: 'warehouseList', component: WarehouseComponent, data: { breadcrumb: '仓库管理' }},
  { path: 'storageLocation', component: StorageLocationManageComponent, data: { breadcrumb: '库位管理' }},
  { path: 'storageCommodityBrand', component: CommodityBrandComponent, data: { breadcrumb: '商品品牌' }},
  { path: 'storageCommodityCategory', component: CommodityCategoryComponent, data: { breadcrumb: '商品分类' }},
  { path: 'storageCommodityInfo', component: CommodityInfoComponent, data: { breadcrumb: '商品信息' }},
  { path: 'storageCommodityAdd', component: CommodityAddComponent, data: { breadcrumb: '编辑商品信息' }},
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class StorageManageRoutingModule { }
